<div class="container">
  <h2>我的待办事项</h2>
  <!-- Todos input -->
  <form role="form" ng-submit="addTodo()">
    <div class="row">
      <div class="input-group">
        <input type="text" ng-model="todo" placeholder="接下来该做什么" class="form-control">
        <span class="input-group-btn">
          <input type="submit" class="btn btn-primary" value="添加">
        </span>
      </div>  
    </div>
    
  </form>
  <!-- Todo list -->

<p class="input-group" ng-repeat="todo in todos">
  <input type="text" ng-model="todo" class="form-control">
  <span class="input-group-btn">
    <button class="btn btn-danger" ng-click="removeTodo($index)" aria-label="Remove">X</button>
  </span>
</p>
 
</div>


